<?php
namespace Common\Controller;
use Common\Controller\CommonController;
class PhotoController extends CommonController
{
    //绑定好友关系
    public function make_friend($my_member_id ,$share_uid)
    {
        return null;
        $field          =   array('colour_member_id');
        $relationship   =   M('colour_member')->where(array('third'=>$share_uid))->field($field)->find();
        if (! empty($relationship))
        {
            if ($relationship['colour_member_id'] != $my_member_id)
            {
                $where_friend                   =   array();
                $where_friend['my_member_id']   =   $my_member_id;
                $where_friend['coupling_member_id']    =   $relationship['colour_member_id'];
                $relation_result                =   M('colour_relationship')->where($where_friend)->field(array('colour_relationship_id'))->find();
                if (empty($relation_result))
                {
                    $insert_data                        =   array();
                    $insert_data['my_member_id']        =   $my_member_id;
                    $insert_data['coupling_member_id']  =   $relationship['colour_member_id'];
                    $insert_data['createtime']          =   time();
                    M('colour_relationship')->add($insert_data);
                }
            }

        }
    }

}